package com.ruoyi.sale.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 出库单记录从表
 * @author WangChangShuo
 * @date 2022年06月06日 14:13
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class OutboundModel extends BaseEntity {

    /**
     * 出库单记录从表自增主键
     */
    private Long outboundModelId;

    /**
     * 出库单记录主表主键
     */
    private Long outboundId;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 产品名称
     */
    private String productName;

    /**
     * 产品唯一码
     */
    private String modelCode;

    /**
     * 产品规格
     */
    private String productType;

    /**
     * 产品批号
     */
    private String batch;

    /**
     * 数量
     */
    private int num;

    /**
     * 单价
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long price;

    /**
     * 含税单价
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long taxPrice;

    /**
     * 总金额
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long total;

    /**
     * 含税金额
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long taxTotal;

    /**
     * 出库单记录从表自增主键
     */
    private Long saleorderModelId;

    public Long getSaleorderModelId() {
        return saleorderModelId;
    }

    public void setSaleorderModelId(Long saleorderModelId) {
        this.saleorderModelId = saleorderModelId;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getTaxPrice() {
        return taxPrice;
    }

    public void setTaxPrice(Long taxPrice) {
        this.taxPrice = taxPrice;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getTaxTotal() {
        return taxTotal;
    }

    public void setTaxTotal(Long taxTotal) {
        this.taxTotal = taxTotal;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getOutboundModelId() {
        return outboundModelId;
    }

    public void setOutboundModelId(Long outboundModelId) {
        this.outboundModelId = outboundModelId;
    }

    public Long getOutboundId() {
        return outboundId;
    }

    public void setOutboundId(Long outboundId) {
        this.outboundId = outboundId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}

